\section{ecdev.\+h File Reference}
\label{ecdev_8h}\index{ecdev.\+h@{ecdev.\+h}}


Ether\+C\+AT interface for Ether\+C\+AT device drivers.  


\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \textbf{ ec\+\_\+device} \textbf{ ec\+\_\+device\+\_\+t}
\item 
\mbox{\label{ecdev_8h_a789bcd88d869f88c58bd13b451b3fd52}} 
typedef void($\ast$ \textbf{ ec\+\_\+pollfunc\+\_\+t}) (struct net\+\_\+device $\ast$)
\begin{DoxyCompactList}\small\item\em Device poll function type. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ ec\+\_\+device\+\_\+t} $\ast$ \textbf{ ecdev\+\_\+offer} (struct net\+\_\+device $\ast$net\+\_\+dev, \textbf{ ec\+\_\+pollfunc\+\_\+t} poll, struct module $\ast$module)
\begin{DoxyCompactList}\small\item\em Offers an Ether\+C\+AT device to a certain master. \end{DoxyCompactList}\item 
void \textbf{ ecdev\+\_\+withdraw} (\textbf{ ec\+\_\+device\+\_\+t} $\ast$device)
\begin{DoxyCompactList}\small\item\em Withdraws an Ether\+C\+AT device from the master. \end{DoxyCompactList}\item 
int \textbf{ ecdev\+\_\+open} (\textbf{ ec\+\_\+device\+\_\+t} $\ast$device)
\begin{DoxyCompactList}\small\item\em Opens the network device and makes the master enter I\+D\+LE phase. \end{DoxyCompactList}\item 
void \textbf{ ecdev\+\_\+close} (\textbf{ ec\+\_\+device\+\_\+t} $\ast$device)
\begin{DoxyCompactList}\small\item\em Makes the master leave I\+D\+LE phase and closes the network device. \end{DoxyCompactList}\item 
void \textbf{ ecdev\+\_\+receive} (\textbf{ ec\+\_\+device\+\_\+t} $\ast$device, const void $\ast$data, size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em Accepts a received frame. \end{DoxyCompactList}\item 
void \textbf{ ecdev\+\_\+set\+\_\+link} (\textbf{ ec\+\_\+device\+\_\+t} $\ast$device, uint8\+\_\+t state)
\begin{DoxyCompactList}\small\item\em Sets a new link state. \end{DoxyCompactList}\item 
uint8\+\_\+t \textbf{ ecdev\+\_\+get\+\_\+link} (const \textbf{ ec\+\_\+device\+\_\+t} $\ast$device)
\begin{DoxyCompactList}\small\item\em Reads the link state. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT interface for Ether\+C\+AT device drivers. 



\subsection{Typedef Documentation}
\mbox{\label{ecdev_8h_ac0895793ea540357d225d4b8be71f2e4}} 
\index{ecdev.\+h@{ecdev.\+h}!ec\+\_\+device\+\_\+t@{ec\+\_\+device\+\_\+t}}
\index{ec\+\_\+device\+\_\+t@{ec\+\_\+device\+\_\+t}!ecdev.\+h@{ecdev.\+h}}
\subsubsection{ec\+\_\+device\+\_\+t}
{\footnotesize\ttfamily typedef struct \textbf{ ec\+\_\+device} \textbf{ ec\+\_\+device\+\_\+t}}

\begin{DoxySeeAlso}{See also}
\doxyref{ec\+\_\+device}{p.}{structec__device} 
\end{DoxySeeAlso}


Definition at line 53 of file ecdev.\+h.

